﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StaticsDetail.aspx.cs" Inherits="CSM.Views.Wenjuan.StaticsDetail" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title>无标题页</title>
    <%--<script type="text/javascript">
        function HiddenOrShow(cur) {
            var table = document.getElementById("table");
            var tr = table.getElementsByTagName("tr");

            for (var i = 0; i < tr.length; i++) {
                if (tr[i] == cur.nextSibling) {
                    if (tr[i].style.display == 'block') {
                        tr[i].style.display = 'none';
                    }
                    else {
                        tr[i].style.display = 'block'
                    }
                }
                else if (tr[i].id == 'detail') {
                    tr[i].style.display = 'none';
                }
            }
        }  
</script>--%>
</head>
<body>
    <form id="form1" runat="server">
    <asp:Panel ID="Panel_Browse" runat="server" >
            <asp:GridView ID="GridView_Detail" runat="server" AutoGenerateColumns="False" align="center" SkinID="gridview"
                >
                <Columns >
                    <asp:BoundField DataField="QuestionName" HeaderText="题目" ReadOnly="True" 
                        SortExpression="题号" ItemStyle-Width="25%" HeaderStyle-CssClass="gvHeader" />
                    <asp:BoundField DataField="Title" HeaderText="选项内容" ReadOnly="True" 
                        SortExpression="选项内容" ItemStyle-Width="25%" HeaderStyle-CssClass="gvHeader"/>
                    <asp:BoundField DataField="Num" HeaderText="选择数" ReadOnly="True" 
                        SortExpression="选择数" ItemStyle-Width="25%" HeaderStyle-CssClass="gvHeader"/>
                       <asp:TemplateField HeaderText="比例" ItemStyle-Width="25%" HeaderStyle-CssClass="gvHeader">
                        <ItemTemplate>
                            <asp:Label ID="Lb" runat="server" 
                                Text='<%#Rate(Eval("Num").ToString(),Eval("AllMumber").ToString())%>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </asp:Panel>
        
        <%--<div>  
            <asp:Repeater ID="Repeater1" runat="server">  
                <HeaderTemplate>  
                    <table id="table">  
                        <tr>  
                            <td>  
                                测试  
                            </td>  
                        </tr>  
                </HeaderTemplate>  
                <ItemTemplate>  
                    <tr id="Tr1" runat="server" onclick="HiddenOrShow(this);">  
                        <td>  
                            标题  
                        </td>  
                    </tr>  
                    <tr id="detail" style="display: none;">  
                        <td>  
                            内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容  
                        </td>  
                    </tr>  
                </ItemTemplate>  
                <FooterTemplate>  
                    </table>  
                </FooterTemplate>  
            </asp:Repeater>  
        </div>  
--%>

    </form>
</body>
</html>
